package com.nuaa.qianru.run;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.core.Ordered;
import org.springframework.stereotype.Component;

@Component
public class Health implements CommandLineRunner, Ordered {
    @Autowired
    Client4 client4;
    @Autowired
    Client5 client5;
    @Autowired
    Client6 client6;
    @Autowired
    Client7 client7;

    @Override
    public void run(String... args) throws Exception {
        client4.start();
        client5.start();
        client6.start();
        client7.start();
    }

    @Override
    public int getOrder() {
        return 2;
    }
}
